package com.yyzw.activiti.modeler.model;

import java.io.Serializable;
import java.util.List;

public class TreeEntity<T> implements Serializable {

    private static final long serialVersionUID = 1L;
    protected int id;

    protected int parentId;

    protected List<T> children;

    protected  String text;

    public TreeEntity(int id, int parentId, List<T> children, String text) {
        this.id = id;
        this.parentId = parentId;
        this.children = children;
        this.text = text;
    }

    public TreeEntity() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public List<T> getChildren() {
        return children;
    }

    public void setChildren(List<T> children) {
        this.children = children;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
